import { IsString, MaxLength, IsNumber } from 'class-validator';

export class CreateRoleDTO {
  @IsString()
  @MaxLength(30)
  readonly name: string;

  @IsString()
  @MaxLength(100)
  readonly description: string;

  @IsString({ each: true })
  readonly authorityIds: string[];
}
